﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="NewsDetail.aspx.cs" MasterPageFile="~/Templates/Home/Home.Master"
    Inherits="VIT.Web.NewsDetail" %>

<%@ Register Assembly="VIT.Web.Controls" Namespace="VIT.Web.Controls" TagPrefix="VIT" %>
<asp:content id="HeadContent" contentplaceholderid="HeadContent" runat="server">
    <title>Tin tức :: <%=blc.Title%> - <%=bla.Title %> - <%=URLRoot %></title>
    <meta name="keywords" content="Tin tức, 24G Cưới, Chia sẻ bí quyết, Nhật ký hành trình, Chia sẻ hạnh phúc, Nhà hàng, Tiệc cưới, Quà tặng"/>
<meta name="description" content="Tin tức :: 24G Cưới - Chia sẻ bí quyết - Nhật ký hành trình - Chia sẻ hạnh phúc - <%=URLRoot %>"/>
<meta name="title" content="Tin tức :: <%=blc.Title%> - <%=bla.Title %> - <%=URLRoot %>"/>

<script type="text/javascript" src="<%=URLRoot %>Includes/VIT.js"></script>
    <!-- sagscroller -->
    <link href="../../Includes/sagscroller/sagscroller.css" rel="stylesheet" type="text/css" /> 
</asp:content>
<asp:content id="MainContent" contentplaceholderid="MainContent" runat="server">
    
    <asp:ScriptManager runat="server" ID="ScriptManager1"></asp:ScriptManager>

    <div class="banner2" style=" padding-bottom:0px; margin-top: -14px;">
        <VIT:Skin runat="server" ID="SkinBannerProduct" SkinName="Empty"></VIT:Skin>
        <VIT:Skin ID="SkinLongShadow" runat="server" SkinName="LongShadow"></VIT:Skin>              
        <div class="baiVietdetail">
                        <div class="top-new-detail"><%=bla.Title %></div>
                            <div class="center-new-detail">
                            <ul><li>
                            <%=bla.Contents%>
                            </li></ul>
                            </div>
                            <div class=" chiase">
                                <a href="#" onclick="PopupPage('http://www.facebook.com/sharer/sharer.php?u=<%=URLRoot.Substring(0, URLRoot.Length - 1) + linkComponent("Article","NewsDetail","sId="+ bla.Id) %>', 800, 600);"><img alt="Chia sẻ" src="../../Templates/Home/Images/chise.jpg" /></a>
                                <a id="aChiase" href="javascript:void(0)"><img alt="Bình luận" src="../../Templates/Home/Images/binhluan.jpg" /></a>
                                <a href="#" onclick="PopupPage('<%=linkComponent("Article","Print","sId="+ bla.Id) %>', 800, 600);"><img alt="In Bài Viết" src="../../Templates/Home/Images/inbaiviet.jpg"/></a>
                                <a href="#" onclick="PopupPage('http://www.facebook.com/plugins/like.php?href=<%=URLRoot.Substring(0, URLRoot.Length - 1) + linkComponent("Article","NewsDetail","sId="+ bla.Id) %>', 800, 600);"><img alt="Like" src="../../Templates/Home/Images/like.jpg" /></a>
                            </div>
                            <div id="divBinhluan" class="chiase" style="margin-top: -1px; height: auto; text-align: left; display: none;">
                                <asp:UpdatePanel runat="server" ID="udpComment" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <div class="main_panel_header">Ý kiến của bạn</div>
                                        <div class="odd">
                                            Tên:
                                            <asp:TextBox runat="server" ID="txtNameComment"></asp:TextBox><br />
                                            <asp:TextBox runat="server" ID="txtDescriptionComment" TextMode="MultiLine" CssClass="news_main_comment"></asp:TextBox><br />
                                            <asp:Button runat="server" ID="btnSendComment" OnClick="btnSendComment_Click" Text="Submit" />
                                            <asp:UpdateProgress runat="server" ID="UpdateProgress1" AssociatedUpdatePanelID="udpComment">
                                                <ProgressTemplate>
                                                    Đang gửi...
                                                </ProgressTemplate>
                                            </asp:UpdateProgress>
                                        </div>
                                        <div id="comment_header" class="main_panel_header">Các ý kiến về tin</div>
                                        <div id="myScrollContainer">
                                            <asp:ListView runat="server" ID="lsvComment">
                                                <ItemTemplate>
                                                    <div class="<%# Container.DataItemIndex % 2 == 0 ? "comment_even" : "comment_odd" %>">
                                                        <div class="comment_date"><%# Convert.ToDateTime(Eval("Time")).ToString("dd/MM") %> &nbsp;&nbsp;</div>
                                                        <div class="comment_title"><%# Eval("Name") %></div>
                                                        <div class="comment_content"><%# Eval("Description") %></div>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:ListView>
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                            <div class="list-tt">
                            <ul>
                            <ul>
                            <h3>Các bài viết cùng chủ đề</h3>
                            <asp:ListView ID="ListView" runat="server">
            <ItemTemplate>
                            <li><a href="<%# Eval("Type").ToString().Contains("SharingHappiness") ? linkComponent("Article","NewsPicDetail","sId="+Eval("Id")) : linkComponent("Article","NewsDetail","sId="+Eval("Id"))%>" title="<%#Eval("Title") %>"><%#Eval("Title") %></a></li>
                            </ItemTemplate>
            </asp:ListView>
                            </ul>
                                <h4>
                                <asp:DataPager ID="Pager" runat="server" PagedControlID="ListView" PageSize="4" onprerender="Pager_PreRender">
            <Fields>
                <asp:NextPreviousPagerField ShowFirstPageButton="True" ShowNextPageButton="false" FirstPageText="⇔" PreviousPageText=""/>
                <asp:NumericPagerField />
                <asp:NextPreviousPagerField ShowLastPageButton="True" ShowPreviousPageButton="false" LastPageText="⇔" NextPageText=""/>
            </Fields>
        </asp:DataPager></h4>
                            </div>
                        </div>      
                        <div class=" logoqc-left">
                               <VIT:Skin ID="SkinQC" runat="server" SkinName="Empty"></VIT:Skin>
                         </div>
                        <div class="cl">
                        </div>
                    </div>

    <script type="text/javascript">
        $('#aChiase').click(function () {
            if ($("#divBinhluan").css("display") == "none")
                $("#divBinhluan").slideDown("slow");
            else $("#divBinhluan").slideUp("slow");
        });
    </script>
</asp:content>
